package com.meitianhui.convenitenbuy.module.mine.presenter;

import com.meitianhui.convenitenbuy.module.mine.contract.QRCodeContract;
import com.meitianhui.convenitenbuy.module.mine.ui.activity.QRCodeActivity;

/**
 * Created by amy on 2017/11/8.
 */

public class QRCodePresenter implements QRCodeContract.Presenter {

    private QRCodeActivity mContext;
    private QRCodeContract.View mView;

    public QRCodePresenter(QRCodeActivity activity, QRCodeActivity context) {
        this.mView = activity;
        this.mContext = context;
    }

    @Override
    public void attachView(Object view) {
    }

    @Override
    public void detachView() {
    }

    /*
    @Override
    public Bitmap createUserQrCode(String userPhoneNumber) {
        DisplayMetrics dm2 =  dm2 = mContext.getResources().getDisplayMetrics();
        try {
            Bitmap qrCodeBitmap = ZXingUtils.createQRCode(userPhoneNumber, (int) (260 * dm2.density));
        } catch (WriterException e) {
            e.printStackTrace();
        }
    }
    */

}
